package org.jeecg.modules.demo.ch.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.demo.ch.entity.ChPartsCodeComparison;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 物料编码配件类表
 * @Author: jeecg-boot
 * @Date:   2022-09-16
 * @Version: V1.0
 */
@Data
@ApiModel(value="ch_material_code_accessoriesPage对象", description="物料编码配件类表")
public class ChMaterialCodeAccessoriesPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**料件编码*/
	@Excel(name = "料件编码", width = 15)
	@ApiModelProperty(value = "料件编码")
    private String itemCode;
	/**料件名称*/
	@Excel(name = "料件名称", width = 15)
	@ApiModelProperty(value = "料件名称")
    private String itemName;
	/**规格*/
	@Excel(name = "规格", width = 15)
	@ApiModelProperty(value = "规格")
    private String specifications;
	/**单位*/
	@Excel(name = "单位", width = 15)
	@ApiModelProperty(value = "单位")
	private String unit;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**是否删除（0.正常1.删除）*/
	@Excel(name = "是否删除（0.正常1.删除）", width = 15)
	@ApiModelProperty(value = "是否删除（0.正常1.删除）")
    private Integer isDelete;

	@ExcelCollection(name="配件代码对照表")
	@ApiModelProperty(value = "配件代码对照表")
	private List<ChPartsCodeComparison> chPartsCodeComparisonList;

}
